<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
	
	<f:metadata>
		<f:viewParam name="initField" value="#{testEventFirer.initField}"></f:viewParam>
		<f:event listener="#{testEventFirer.successInit()}" type="preRenderView"></f:event>
		<f:event listener="#{testEventFirer.throwExceptionMethod()}" type="preRenderView"></f:event>
	</f:metadata>   
   
   	<ui:define name="content">
   
		<h:form id="editForm">        
	       <p:messages id="messages" autoUpdate="true" closable="true"/>
			
			<p:commandButton value="Submit" action="ok" />
		</h:form>
      
   	</ui:define>
</ui:composition>
